package com.swg.myspring.main;

import com.swg.myspring.service.PersonService;
import com.swg.myspring.service.PersonService2;
import com.swg.myspring.util.SwgClassPathXmlApplicationContext;
import com.swg.myspring.util.SwgClassPathXmlApplicationContext2;

public class Main2 {
    public static void main(String[] args) {
        SwgClassPathXmlApplicationContext2 sctx = new SwgClassPathXmlApplicationContext2("beans2.xml");
        PersonService2 personService2 = (PersonService2)sctx.getBean("personService2",PersonService2.class);
        personService2.sayHello();
    }
}
